#include <stdio.h>
#include <linux/fb.h>
#include "fb.h"

#define FBDEV "/dev/fb0"

unsigned int    fb_width;
unsigned int    fb_height;
unsigned int    fb_depth;
  
int main(int argc, char **argv)
{
    printf("GM812x framebuffer test\n");
    
	int fbdev = fb_open(FBDEV);
	
    //get status of framebuffer device
    fb_stat(fbdev, &fb_width, &fb_height, &fb_depth);
    
    printf("fb_width=%d, fb_height=%d, fb_depth=%d\n", fb_width, fb_height, fb_depth);
    
    return 1;
}

